export default [
  { path: '/', icon: 'smile', component: './Index' },
  { path: '/interface_info/:id', icon: 'smile', component: './InterfaceInfo', hideInMenu: true },
  { path: '/user', layout: false, routes: [{ path: '/user/login', component: './User/Login' }] },
  {
    path: '/admin',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      { icon: 'table', path: '/admin/interface_info', component: './Admin/InterfaceInfo' },
      {
        icon: 'analysis',
        path: '/admin/interface_analysis',
        component: './Admin/InterfaceInfoAnalysis',
      },
    ],
  },
  { path: '*', layout: false, component: './404' },
];
